import 'package:flutter/material.dart';
import 'package:flutter_project/common/route_page/route_name.dart';
import 'package:flutter_project/config/app_bar_view.dart';
import 'package:flutter_project/config/theme_color.dart';

import 'my_series_video_page.dart';

class MySeriesListPage extends StatefulWidget {
  const MySeriesListPage({super.key});

  @override
  State<MySeriesListPage> createState() => _MySeriesListPageState();
}

class _MySeriesListPageState extends State<MySeriesListPage> {
  @override
  Widget build(BuildContext context) {
    return CommonAppWidget.navAppBar(
        title: '合集列表',
        bgColor: Colors.white,
        childWidget: GridView.builder(
            gridDelegate: const SliverGridDelegateWithFixedCrossAxisCount(
                crossAxisCount: 3,
                mainAxisSpacing: 10,
                crossAxisSpacing: 10,
                childAspectRatio: 3 / 4),
            itemCount: 10,
            itemBuilder: (BuildContext context, int index) {
              return GestureDetector(
                onTap: () {
                  RouteNames.push(const MySeriesVideoPage());
                },
                child: Column(
                  children: [
                    Container(
                      color: Colors.red,
                      width: 80,
                      height: 100,
                    ),
                    const SizedBox(
                      height: 5,
                    ),
                    const Text(
                      '海阔天空',
                      style: TextStyle(fontSize: 14),
                    ),
                    const SizedBox(
                      height: 5,
                    ),
                    Text(
                      '暂无视频',
                      style: TextStyle(
                          fontSize: 12, color: ThemeColor.checkNormalColor),
                    ),
                  ],
                ),
              );
            }));
  }
}
